
import request from '@/utils/request'

// 创建订单
export function insertOrder(orderPayload) {
  return request({
    'url': `/order/insertOrder`,
    method: 'post',
	data: orderPayload,
  });
}
//获取订单
export function getOrderByUserId(userId) {
  return request({
    'url': `/order/getOrderByUserId/ ${userId}`,
    method: 'get',
  });
}
//删除订单
export function deleteOrder(orderId) {
  return request({
    'url': `/order/deleteOrder/ ${orderId}`,
    method: 'delete',
  });
}
